/* 作品集页面特定样式 */
.works-hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1501084291932-933942a0f182?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center;
    background-size: cover;
}

/* 作品筛选区域 */
.works-filter {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--black);
    border-bottom: 1px solid var(--medium-gray);
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--white);
    color: var(--black);
}

/* 作品展示区域 */
.works-gallery {
    padding: 5rem 5%;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.work-item {
    background-color: var(--black);
    border: 1px solid var(--medium-gray);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.work-image {
    width: 100%;
    height: 250px;
    background-color: var(--medium-gray);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.work-item:hover .work-image::after {
    opacity: 1;
}

.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.work-category {
    color: var(--very-light-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.work-desc {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.view-work {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.view-work::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--white);
    transition: width var(--transition-speed) ease;
}

.view-work:hover::after {
    width: 100%;
}

.load-more {
    text-align: center;
    margin-top: 4rem;
}

.load-more-btn {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.load-more-btn:hover {
    background-color: var(--white);
    color: var(--black);
}

/* 作品详情模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin: 5% auto;
    background-color: var(--black);
    border: 1px solid var(--medium-gray);
    border-radius: 2px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
}

.detail-container {
    display: flex;
    flex-wrap: wrap;
}

.detail-image-container {
    flex: 1;
    min-width: 300px;
    height: 500px;
    overflow: hidden;
}

.detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-info {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.detail-category {
    color: var(--very-light-gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.detail-meta {
    margin-bottom: 2rem;
}

.detail-meta p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.detail-techniques, .detail-inspiration {
    margin-bottom: 2rem;
}

.detail-techniques h4, .detail-inspiration h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.techniques-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.technique-item {
    background-color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .works-hero {
        height: 60vh;
    }
    
    .works-filter {
        padding: 2rem 5%;
    }
    
    .works-gallery {
        padding: 4rem 5%;
    }
    
    .detail-container {
        flex-direction: column;
        padding: 2rem;
    }
    
    .detail-image-container {
        height: 300px;
    }
    
    .detail-info {
        padding: 2rem 0;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
}